package com.itheima.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuyp
 * @date 2023/05/06
 */
@RestController
public class DemoController {

    @GetMapping("/hello")
    public String hello(){
        return "查询今日运营数据\n" +
                "基本信息\n" +
                "Path： /admin/workspace/businessData\n" +
                "\n" +
                "Method： GET\n" +
                "\n" +
                "接口描述：\n" +
                "\n" +
                "请求参数\n" +
                "返回数据\n" +
                "名称\t类型\t是否必须\t默认值\t备注\t其他信息\n" +
                "code\tinteger\t必须\t\t\t\n" +
                "format: int32\n" +
                "\n" +
                "data\tobject\t必须\t\t\t\n" +
                "├─ newUsers\tinteger\t必须\t\t新增用户数\t\n" +
                "format: int32\n" +
                "\n" +
                "├─ orderCompletionRate\tnumber\t必须\t\t订单完成率\t\n" +
                "format: double\n" +
                "\n" +
                "├─ turnover\tnumber\t必须\t\t营业额\t\n" +
                "format: double\n" +
                "\n" +
                "├─ unitPrice\tnumber\t必须\t\t平均客单价\t\n" +
                "format: double\n" +
                "\n" +
                "├─ validOrderCount\tinteger\t必须\t\t有效订单数\t\n" +
                "format: int32\n" +
                "\n" +
                "msg\tstring\t非必须\t\t\t\n" +
                "查询套餐总览\n" +
                "基本信息\n" +
                "Path： /admin/workspace/overviewSetmeals\n" +
                "\n" +
                "Method： GET\n" +
                "\n" +
                "接口描述：\n" +
                "\n" +
                "请求参数\n" +
                "返回数据\n" +
                "名称\t类型\t是否必须\t默认值\t备注\t其他信息\n" +
                "code\tinteger\t必须\t\t\t\n" +
                "format: int32\n" +
                "\n" +
                "data\tobject\t必须\t\t\t\n" +
                "├─ discontinued\tinteger\t必须\t\t已停售套餐数量\t\n" +
                "format: int32\n" +
                "\n" +
                "├─ sold\tinteger\t必须\t\t已启售套餐数量\t\n" +
                "format: int32\n" +
                "\n" +
                "msg\tstring\t非必须\t\t\t\n" +
                "查询菜品总览\n" +
                "基本信息\n" +
                "Path： /admin/workspace/overviewDishes\n" +
                "\n" +
                "Method： GET\n" +
                "\n" +
                "接口描述：\n" +
                "\n" +
                "请求参数\n" +
                "返回数据\n" +
                "名称\t类型\t是否必须\t默认值\t备注\t其他信息\n" +
                "code\tinteger\t必须\t\t\t\n" +
                "format: int32\n" +
                "\n" +
                "data\tobject\t必须\t\t\t\n" +
                "├─ discontinued\tinteger\t必须\t\t已停售菜品数量\t\n" +
                "format: int32\n" +
                "\n" +
                "├─ sold\tinteger\t必须\t\t已启售菜品数量\t\n" +
                "format: int32\n" +
                "\n" +
                "msg\tstring\t非必须\t\t\t\n" +
                "查询订单管理数据\n" +
                "基本信息\n" +
                "Path： /admin/workspace/overviewOrders\n" +
                "\n" +
                "Method： GET\n" +
                "\n" +
                "接口描述：\n" +
                "\n" +
                "请求参数\n" +
                "返回数据\n" +
                "名称\t类型\t是否必须\t默认值\t备注\t其他信息\n" +
                "code\tinteger\t必须\t\t\t\n" +
                "format: int32\n" +
                "\n" +
                "data\tobject\t必须\t\t\t\n" +
                "├─ allOrders\tinteger\t必须\t\t全部订单\t\n" +
                "format: int32\n" +
                "\n" +
                "├─ cancelledOrders\tinteger\t必须\t\t已取消数量\t\n" +
                "format: int32\n" +
                "\n" +
                "├─ completedOrders\tinteger\t必须\t\t已完成数量\t\n" +
                "format: int32\n" +
                "\n" +
                "├─ deliveredOrders\tinteger\t必须\t\t待派送数量\t\n" +
                "format: int32\n" +
                "\n" +
                "├─ waitingOrders\tinteger\t必须\t\t待接单数量\t\n" +
                "format: int32\n" +
                "\n" +
                "msg\tstring\t非必须\t\t\t\n" +
                "店铺操作接口\n" +
                "获取营业状态\n" +
                "基本信息\n" +
                "Path： /admin/shop/status\n" +
                "\n" +
                "Method： GET\n" +
                "\n" +
                "接口描述：\n" +
                "\n" +
                "请求参数\n" +
                "返回数据\n" +
                "名称\t类型\t是否必须\t默认值\t备注\t其他信息\n" +
                "code\tinteger\t必须\t\t\t\n" +
                "format: int32\n" +
                "\n" +
                "data\tinteger\t必须\t\t店铺营业状态：1为营业，0为打烊\t\n" +
                "format: int32\n" +
                "\n" +
                "msg\tstring\t非必须\t\t\t\n" +
                "设置营业状态\n" +
                "基本信息\n" +
                "Path： /admin/shop/{status}\n" +
                "\n" +
                "Method： PUT\n" +
                "\n" +
                "接口描述：\n" +
                "\n" +
                "请求参数\n" +
                "Headers\n" +
                "\n" +
                "参数名称\t参数值\t是否必须\t示例\t备注\n" +
                "Content-Type\tapplication/json\t是\t\t\n" +
                "路径参数\n" +
                "\n" +
                "参数名称\t示例\t备注\n" +
                "status\t1\t店铺营业状态：1为营业，0为打烊\n" +
                "返回数据\n" +
                "名称\t类型\t是否必须\t默认值\t备注\t其他信息\n" +
                "code\tinteger\t必须\t\t\t\n" +
                "format: int32\n" +
                "\n" +
                "data\tstring\t非必须\t\t\t\n" +
                "msg\tstring\t非必须\t\t\t\n" +
                "数据统计相关接口\n" +
                "导出Excel报表接口\n" +
                "基本信息\n" +
                "Path： /admin/report/export\n" +
                "\n" +
                "Method： GET\n" +
                "\n" +
                "接口描述：\n" +
                "\n" +
                "请求参数\n" +
                "返回数据\n" +
                "OK";
    }
}
